package com.eshore.norm.pattern.decorator;

/**
 * 配料类 Decorator（装饰者）：该角色具有与Component角色相同的接口(API)，在它内部保存了Component角色
 *
 * @author: v-chenjl62
 * @date: 2024/2/5 14:54
 */
public abstract class Garnish extends FastFood{
    FastFood fastFood;

    public Garnish(FastFood fastFood,float price, String desc) {
        super(price, desc);
        this.fastFood = fastFood;
    }

    public FastFood getFastFood() {
        return fastFood;
    }

    public void setFastFood(FastFood fastFood) {
        this.fastFood = fastFood;
    }
}
